<html>
<head><meta charset="utf-8"><title>Help configuring rust-analyzer · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Help.20configuring.20rust-analyzer.html">Help configuring rust-analyzer</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="197790525"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Help%20configuring%20rust-analyzer/near/197790525" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Do Duy <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Help.20configuring.20rust-analyzer.html#197790525">(May 16 2020 at 11:08)</a>:</h4>
<p>Hello everyone, I just started using rust-analyzer in vim using YouCompleteMe.</p>
<p>When I type a function and then type "(", I get a popup with the function's prototype. How can I disable this behaviour? <a href="/user_uploads/4715/q61xSPqx62VjkVawkPd5k2s0/Screenshot-from-2020-05-16-18-08-06.png">Screenshot-from-2020-05-16-18-08-06.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/q61xSPqx62VjkVawkPd5k2s0/Screenshot-from-2020-05-16-18-08-06.png" title="Screenshot-from-2020-05-16-18-08-06.png"><img src="/user_uploads/4715/q61xSPqx62VjkVawkPd5k2s0/Screenshot-from-2020-05-16-18-08-06.png"></a></div>



<a name="197792419"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Help%20configuring%20rust-analyzer/near/197792419" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Do Duy <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Help.20configuring.20rust-analyzer.html#197792419">(May 16 2020 at 12:01)</a>:</h4>
<p>I got this in logs "failed to fetch the server settings: ResponseError { code: -32601, message: "Method not found", data: None }"</p>
<p>My .ycm_extra_conf.py file:</p>
<div class="codehilite"><pre><span></span><code>def Settings( **kwargs ):
    if kwargs[ &#39;language&#39; ] == &#39;rust&#39;:
        config = { &quot;rust-analyzer.completion.addCallArgumentSnippets&quot;: False }
        return { &#39;ls&#39;: config }
</code></pre></div>



<a name="197793597"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Help%20configuring%20rust-analyzer/near/197793597" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Do Duy <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Help.20configuring.20rust-analyzer.html#197793597">(May 16 2020 at 12:31)</a>:</h4>
<p>server receives this request:</p>
<div class="codehilite"><pre><span></span><code>[INFO  rust_analyzer::main_loop] loop turn = Notification(Notification { method: &quot;workspace/didChangeConfiguration&quot;, params: Object({&quot;settings&quot;: Object({&quot;rust-analyzer.completion.addCallArgumentSnippets&quot;: Bool(false)})}) })
</code></pre></div>



<a name="197793869"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Help%20configuring%20rust-analyzer/near/197793869" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Do Duy <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Help.20configuring.20rust-analyzer.html#197793869">(May 16 2020 at 12:39)</a>:</h4>
<p>Ok so RA ignores data in didChangeConfiguation, and instead requests for a configuration. But YCM doesn't support this request.</p>



<a name="197795036"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Help%20configuring%20rust-analyzer/near/197795036" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Do Duy <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Help.20configuring.20rust-analyzer.html#197795036">(May 16 2020 at 13:09)</a>:</h4>
<p>Relevant issue <a href="https://github.com/microsoft/language-server-protocol/issues/972">https://github.com/microsoft/language-server-protocol/issues/972</a></p>



<a name="197796239"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Help%20configuring%20rust-analyzer/near/197796239" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Do Duy <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Help.20configuring.20rust-analyzer.html#197796239">(May 16 2020 at 13:40)</a>:</h4>
<p>Apart from the above issue, RA does receive a configuration via initialization request. So, my config format is wrong.<br>
I'm not sure what is the correct values.</p>
<div class="codehilite"><pre><span></span><code>[INFO  rust_analyzer::config] Config::update({
      &quot;rust-analyzer.completion.addCallArgumentSnippets&quot;: false
    })
</code></pre></div>



<a name="197796677"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Help%20configuring%20rust-analyzer/near/197796677" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Do Duy <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Help.20configuring.20rust-analyzer.html#197796677">(May 16 2020 at 13:53)</a>:</h4>
<p>Ok so I managed to set the option with </p>
<div class="codehilite"><pre><span></span><code>{ &quot;completion&quot;: { &quot;addCallArgumentSnippets&quot;: False } }
</code></pre></div>


<p>and it still shows the popup. Any idea what is the correct option to disable this popup?</p>



<a name="197796890"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Help%20configuring%20rust-analyzer/near/197796890" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Help.20configuring.20rust-analyzer.html#197796890">(May 16 2020 at 13:58)</a>:</h4>
<p>that's probably just the normal documentation popup, so there's no option to disable that in RA, you would have to check whether YCM allows disabling it</p>



<a name="197853624"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Help%20configuring%20rust-analyzer/near/197853624" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Help.20configuring.20rust-analyzer.html#197853624">(May 17 2020 at 15:11)</a>:</h4>
<p>That's the <code>SignatureHelp</code> LSP request. You'll have to disable it client side</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>